import React, { useEffect, useRef } from 'react'
import {useItemList} from '@/Utils/hook/index'
import Test1 from './test1'
export default function test() {
  const [data,loading,setPage,setPageSize] = useItemList()
  useEffect(()=>{
    setPage(2)
    setPageSize(20)
    console.log(data,loading)
  },[])
  const ref = useRef(null)
  console.log('ref',ref)
  return (
    <div>
      test
      <Test1 ref={ref}></Test1>
    </div>
  )
}
